@import '../../../common/mdcss/common.less';
@import '../../../common/mdcss/Themes/theme.less';
@addItemBg: #f5f5f5;
@addItemColor: #a7a7a7;
@addItemHoverColor: #2196f3;
@appItemHoverColor: #f5f5f5;
@delColor: #f51744;

.myAppWrap {
  display: flex;
  height: 100%;
  background-color: #fff;
  .myAppSideWrap {
    box-sizing: border-box;
    width: 240px;
    height: 100%;
    padding: 12px 0;
    background-color: #fafafa;
    overflow-y: auto;
    .appTitle {
      margin: 24px 0 10px 24px;
    }
    ul {
      padding: 0 12px;
    }
    li {
      display: flex;
      align-items: center;
      height: 40px;
      padding: 0 10px 0 12px;
      cursor: pointer;
      border-radius: 4px;
      span {
        margin-left: 8px;
      }
      &:hover {
        background-color: #efefef;
      }
    }
  }
  .myAppGroupWrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #fff;
    .myAppGroupBox {
      max-width: 900px;
      margin: 0 auto;
    }
    .functionIntro {
      margin-top: 160px;
      text-align: center;
      .welcomeImg {
        height: 100px;
        background: url('./assets/welcome.png') center center no-repeat;
      }
      h2 {
        font-size: 32px;
      }
      & > p {
        color: #333;
      }
      .introWrap {
        display: flex;
        justify-content: center;
        margin-top: 40px;
      }
      .introItem {
        width: 250px;
        height: 266px;
        padding: 40px 32px 56px 32px;
        background-color: #fff;
        border: 1px solid #eceef1;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        cursor: pointer;
        &:hover {
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0px 2px rgba(0, 0, 0, 0.12);
        }
        &:nth-child(2) {
          margin: 0 32px;
        }
        .iconWrap {
          font-size: 40px;
        }
        .title {
          margin-top: 8px;
          font-size: 18px;
          font-weight: 600;
          color: #333;
        }
        .desc {
          margin-top: 8px;
          color: #757575;
        }
      }
    }
    .joinOrCreateProject {
      margin: 0 auto;
      margin-top: 24px;
      font-size: 14px;
      padding: 0 30px;
      line-height: 44px;
      background: rgba(33, 150, 243, 0.08);
      border-radius: 22px;
      color: #757575;
      span {
        color: #2196f3;
        cursor: pointer;
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .noNetworkBox {
      margin: 70px auto;
      align-items: center;
      justify-content: center;
      &.noNetworkBoxBorder {
        border-bottom: 1px solid #eaeaea;
        padding-top: 90px;
        padding-bottom: 90px;
      }
      .noNetworkBoxBG {
        background: url('./assets/empty.png') no-repeat;
        background-size: 256px 131px;
        width: 256px;
        height: 131px;
      }
      .joinNetwork,
      .createNetwork {
        margin: 0 16px;
        padding: 0 32px;
        height: 44px;
        line-height: 44px;
        box-sizing: border-box;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        color: #fff;
        font-size: 14px;
      }
      .createNetwork {
        border-width: 1px;
        border-style: solid;
        &:not(:hover) {
          background: #fff !important;
        }
        &:hover {
          color: #fff !important;
        }
      }
    }
  }
  .starApp {
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
  }
  .myAppGroupItem {
    &:last-child {
      .myAppGroupDetail {
        padding-bottom: 80px;
      }
    }
    .Hidden {
      display: none !important;
    }
  }
  .emptyHint {
    height: 16px;
    font-size: 18px;
    margin-top: 14px;
    color: #9e9e9e;
    padding-left: 10px;
    font-weight: bold;
  }
  .myAppGroupTitle {
    display: flex;
    align-items: center;
    margin: 40px 0 16px 0;
    padding-left: 10px;
    &.validProject {
      .info {
        flex-shrink: 0;
      }
    }
    .projectName {
      font-size: 24px;
    }
    &.overdue > span {
      color: #757575;
    }
    &.overdue > .icon {
      color: #9e9e9e;
    }
    & > .icon {
      margin-right: 8px;
      color: #9e9e9e;
    }
    .appBelongInfo {
      display: flex;
      align-items: center;
      margin: 0 10px 0 12px;
      padding: 0 10px;
      border-radius: 14px;
      line-height: 28px;
      text-align: center;
      font-size: 12px;
      background-color: #f5f5f5;
      cursor: pointer;
      &:hover {
        background-color: #efefef;
      }
      span {
        color: #757575;
        margin-left: 4px;
      }
      .purchase {
        color: #2196f3;
        cursor: pointer;
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
  .myAppGroupDetail {
    display: flex;
    flex-wrap: wrap;
    .sortableAppItemList {
      display: flex;
      flex-wrap: wrap;
    }
    .delApp {
      color: @delColor !important;
      .Item-content:hover {
        color: #fff !important;
        background-color: @delColor !important;
      }
    }
    .sortableMyAppItemWrap {
      &.isSelectingIcon,
      &.active {
        z-index: 20;
      }
      &:hover,
      &.isSelectingIcon,
      &.active {
        .myAppItemWrap {
          background-color: @appItemHoverColor;
          border-radius: 12px;
          transform: translateY(-10px);
        }
        .appItemIcon {
          opacity: 1;
        }
      }
    }
    .myAppItemWrap {
      position: relative;
      margin: 0 9px;
      margin-top: 16px;
      height: 160px;
      transition: 0.25s ease-out;
      cursor: pointer;
      &:hover > .appItemIcon {
        opacity: 1;
      }
      .myAppItemSelectIconWrap {
        top: 105px;
        left: -84px;
        margin-bottom: 32px;
        input {
          text-align: center;
        }
      }

      .moreOperation {
        color: #9e9e9e;
        &:hover,
        &.active {
          color: @themeColor3;
        }
      }

      .myAppItem {
        box-sizing: border-box;
        width: 132px;
        padding: 10px 0;
        height: 100%;
        // overflow: hidden;
      }
      .externalAppInfo {
        padding: 12px;
        text-align: center;
        .appName {
          font-size: 14px;
        }
        .projectName {
          margin-top: 4px;
          color: #bdbdbd;
        }
      }
      .appItemIcon {
        position: absolute;
        top: 8px;
        right: 8px;
        opacity: 0;
        transition: all 0.25s ease-out;
        &.star {
          left: 8px;
          right: auto;
        }
        .icon-task-star {
          color: #f9ce1d;
        }
        .icon-star-hollow {
          color: #9e9e9e;
          &:hover {
            color: @themeColor3;
          }
        }
      }
      .myAppItemDetail {
        .circle;
        .crossCenter;
        position: relative;
        margin: 0 auto;
        cursor: pointer;

        .icon {
          font-size: 48px;
          color: #fff;
        }
      }
      .appExplain {
        width: 100%;
        height: 36px;
        margin-top: 12px;
        text-align: center;
        padding: 0 16px;
        box-sizing: border-box;
        line-height: 18px;
        font-size: 14px;
      }
    }
  }
  .addAppItemWrap {
    position: relative;
    width: 132px;
    box-sizing: border-box;
    margin: 0 9px;
    height: 160px;
    padding: 10px;
    margin-top: 16px;

    .addAppItem {
      .addItem;
      width: 88px;
      height: 88px;
      margin: 0 auto;
    }
    .addAppItemMenu {
      top: 105px !important;
      bottom: inherit !important;
    }
    .addItemIcon {
      color: #9e9e9e;
    }
    .info {
      margin-top: 12px;
      text-align: center;
    }
  }
}
.sortableItemHelperClass {
  max-width: 132px !important;
  margin-top: 22px;
  padding: 10px 0;
  background-color: @appItemHoverColor;
  border-radius: 12px;
  z-index: 25;
  .appItemIcon {
    position: absolute;
    top: 8px;
    right: 8px;
    &.star {
      left: 8px;
      right: auto;
    }

    .icon-task-star {
      color: #f9ce1d;
    }
    .icon-star-hollow,
    .moreOperation {
      color: #9e9e9e;
    }
  }
  .myAppItemDetail {
    .circle;
    .crossCenter;
    margin: 0 auto;
    cursor: pointer;
    .icon {
      font-size: 48px;
      color: #fff;
    }
  }
  .appExplain {
    margin-top: 12px;
    padding: 0 12px;
    text-align: center;
    height: 36px;
    overflow: hidden;
  }
}

.myAppScrollContent {
  box-sizing: border-box;
  padding: 0 8%;
}

.myAppItemOperatorTriggerWrap {
  li {
    &.delApp .Item-content:not(.disabled) {
      color: @delColor;
      .icon {
        color: @delColor;
      }
      &:hover {
        background-color: @delColor !important;
        color: #fff;
      }
    }
  }
}
